package com.liy.supercloud.ssoserver.feign;

import com.liy.framework.common.extvo.ResultVO;
import com.liy.supercloud.ssoserver.vo.SysLoginLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;



@Component
@FeignClient(name = "sys", fallbackFactory = SystemClientFallbackFactory.class)
public interface SystemFeignClient {

    @ResponseBody
    @RequestMapping(value = {"/loginlog/add"}, method = {RequestMethod.POST})
    ResultVO addLoginLog(@RequestBody SysLoginLog var1) throws Exception;


    @ResponseBody
    @RequestMapping(
            value = {"/account/find/{account}"},
            method = {RequestMethod.GET}
    )
    ResultVO queryUserByAccount(@RequestParam("account") String var1) throws Exception;


    @ResponseBody
    @RequestMapping(
            value = {"/group/station/user/permission/{userId}"},
            method = {RequestMethod.GET}
    )
    ResultVO queryUserRoleStation(@RequestParam("userId") String var1) throws Exception;


    @ResponseBody
    @RequestMapping(
            value = {"/permission/query/role/{roleId}"},
            method = {RequestMethod.GET}
    )
    ResultVO queryRolePermission(@RequestParam("roleId") String var1) throws Exception;


    @ResponseBody
    @RequestMapping(
            value = {"/permission/query/shared/{sysId}"},
            method = {RequestMethod.GET}
    )
    ResultVO querySharedPermission(@RequestParam("sysId") String var1) throws Exception;
}
